<!-- 编辑记账表单弹出层 -->
<div id="editAccountModal" style="display: none;">
    <div class="form-container">
        <form class="layui-form" id="editAccountForm">
            <input type="hidden" name="aid" id="editAid">
            <div class="layui-form-item">
                <label class="layui-form-label">用户</label>
                <div class="layui-input-block">
                    <select name="uid" id="editUid" required lay-verify="required">
                        <!-- 用户选项将通过JavaScript动态生成 -->
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">金额</label>
                <div class="layui-input-block">
                    <input type="text" name="amount" id="editAmount" required lay-verify="required|number" placeholder="请输入金额" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">分类</label>
                <div class="layui-input-block">
                    <select name="category" id="editCategory" required lay-verify="required">
                        <!-- 分类选项将通过JavaScript动态生成 -->
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">描述</label>
                <div class="layui-input-block">
                    <textarea name="description" id="editDescription" required lay-verify="required" placeholder="请输入详细描述" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-block">
                    <select name="a_type" id="editType" required lay-verify="required">
                        <option value="1">收入</option>
                        <option value="2">支出</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="editAccountSubmit">确认</button>
                    <button type="button" class="layui-btn layui-btn-primary" id="closeEditModal">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>